/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.vijayan.profile.service.http;

import com.liferay.portal.kernel.json.JSONArray;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;

import com.vijayan.profile.model.MyExpectation;

import java.util.List;

/**
 * @author    vijayan
 * @generated
 */
public class MyExpectationJSONSerializer {
	public static JSONObject toJSONObject(MyExpectation model) {
		JSONObject jsonObj = JSONFactoryUtil.createJSONObject();

		jsonObj.put("exceptationId", model.getExceptationId());
		jsonObj.put("profileId", model.getProfileId());
		jsonObj.put("minAge", model.getMinAge());
		jsonObj.put("maxAge", model.getMaxAge());
		jsonObj.put("expectedReligion", model.getExpectedReligion());
		jsonObj.put("expectedCaste", model.getExpectedCaste());
		jsonObj.put("expectedSubCaste", model.getExpectedSubCaste());
		jsonObj.put("expectedCountry", model.getExpectedCountry());
		jsonObj.put("expectedState", model.getExpectedState());
		jsonObj.put("expectedCity", model.getExpectedCity());
		jsonObj.put("expectedHeight", model.getExpectedHeight());
		jsonObj.put("expectedWeight", model.getExpectedWeight());
		jsonObj.put("expectedComplexion", model.getExpectedComplexion());
		jsonObj.put("expectedLanguage", model.getExpectedLanguage());
		jsonObj.put("expectedMaritalStatus", model.getExpectedMaritalStatus());
		jsonObj.put("expectationDetail", model.getExpectationDetail());

		return jsonObj;
	}

	public static JSONArray toJSONArray(
		com.vijayan.profile.model.MyExpectation[] models) {
		JSONArray jsonArray = JSONFactoryUtil.createJSONArray();

		for (MyExpectation model : models) {
			jsonArray.put(toJSONObject(model));
		}

		return jsonArray;
	}

	public static JSONArray toJSONArray(
		com.vijayan.profile.model.MyExpectation[][] models) {
		JSONArray jsonArray = JSONFactoryUtil.createJSONArray();

		for (MyExpectation[] model : models) {
			jsonArray.put(toJSONArray(model));
		}

		return jsonArray;
	}

	public static JSONArray toJSONArray(
		List<com.vijayan.profile.model.MyExpectation> models) {
		JSONArray jsonArray = JSONFactoryUtil.createJSONArray();

		for (MyExpectation model : models) {
			jsonArray.put(toJSONObject(model));
		}

		return jsonArray;
	}
}